public class Petdog {
    //狗的属性
    public String name;
    public String color;
    //狗的行为
        public void barks(){
            System.out.println(name + ":汪汪汪");
        }
        public void wag(){
            System.out.println(name + ":摇尾巴");
        }
}



